
module.exports = app => {

    return class HomeController extends app.Controller {

        async index() {
            const { ctx } = this;

            this.app.logger.info(this.ctx.request.headers);
            let headers = this.ctx.request.headers;

            let data = Model.getPage(1, 10);

            data.headers = headers;

            await ctx.renderClient('index/index.js', data);
        }


    };
};
